package com.easylinkin.linkappapi.devicemanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.devicemanager.entity.*;
import com.easylinkin.linkappapi.devicemanager.vo.WireropeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author linWenLe
 * @Date: 2024/3/28
 * @Description:
 */
public interface WireropeMapper extends BaseMapper<WireropeEntity> {

    WireropeTitleEntity getWireropeInfo(String deviceId);

    int getAlertMode(String deviceId);

    IPage<WireropeEntity> getHistoryAlertList(Page page,@Param("model") WireropeVo model);

    List<WireropeEntity> getWireropeList(WireropeVo model);

    List<SensorEntity> sensorMonitoring(@Param("tenantId") String tenantId,@Param("list") List<String> list);

    List<SensorDevice> getAlertConfig(@Param("list")List<String> list, @Param("tenantId") String tenantId);

    IPage<WireropeEntity> sensorAlertHistory(Page page,@Param("model") WireropeVo params, @Param("list")List<String> list, @Param("tenantId") String tenantId);

    List<WireropeEntity> sensorDataList(WireropeVo entity);

    List<DeviceUnit> deviceList(@Param("deviceTypeId") String deviceTypeId, @Param("tenantId") String tenantId);
}
